import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: false,
    addBtnText: '新增申报',
    // editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '事项名称',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '行政相对人',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '建设单位',
        prop: 'p3',
        overHidden: true,
        search: true,

      },
      {
        label: '事项描述',
        prop: 'p4',
        search: false,
        // overHidden: true,
        // type: 'select',
        // dicData: self.shipSTypeArr,
        // filterable: true,
        // props: {
        //   label: 'lable',
        //   value: 'value'
        // }
      },
      {
        label: '航评审核监督检查信息（开工前）',
        prop: 'p5',
      },
      {
        label: '航评审核监督检查信息（完工后）',
        prop: 'p6',
      },
      {
        label: '专用航标许可监督检查信息',
        prop: 'p7',
      },
      {
        label: '日常巡查信息',
        prop: 'p8',
      },

      {
        label: '通航建筑物方案审批监督检查信息',
        prop: 'p9',
      },
      {
        label: '“双随机一公开”抽查信息',
        prop: 'p10',
      },
      {
        label: '事项状态',
        prop: 'p11',
        type: 'select',
        search: true,

      },
      {
        label: '审核状态',
        prop: 'p12',
        type: 'select',
        search: true,

      },
      // {
      //   label: '船籍港',
      //   prop: 'homePort',
      //   width: 100,
      //   overHidden: true,
      //   type: 'select',
      //   dicData: self.homePortArr
      // },
      // {
      //   label: '航线',
      //   prop: 'shipRegionType',
      //   search: true,
      //   width: 180,
      //   type: 'select',
      //   dicData: [
      //     { label: '内河船', value: '0' },
      //     { label: '海船', value: '1' },
      //     { label: '国际航行', value: '2' }
      //   ]
      // },
      // {
      //   label: '船舶总吨（吨）',
      //   prop: 'totalTon',
      //   overHidden: true,
      //   width: 140
      // },
      // {
      //   label: '总吨范围',
      //   prop: 'tonRange',
      //   search: true,
      //   hide: true
      // },

    ]
  }
}

export const options1 = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    searchShow: false,
    menuWidth: 300,
    menu: false,
    header: false,
    addBtn: false,
    addBtnText: '新增申报',
    // editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '归档时间',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '归档发起人',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '归档信息',
        prop: 'p3',
        overHidden: true,
        search: true,
      },
    ]
  }
}


export const options2 = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 6,
    searchShow: false,
    menuWidth: 300,
    menu: false,
    header: false,
    addBtn: false,
    addBtnText: '新增申报',
    // editBtn: true,
    deleteBtn: true,
    column: [
      {
        label: '操作人',
        prop: 'p1',
        search: true,
        overHidden: true,
        search: true,
      },
      {
        label: '操作类型',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '操作时间',
        prop: 'p3',
        overHidden: true,
        search: true,
      },
    ]
  }
}
